﻿<!-- Loading Container -->
<!-- <div class="loading-container" data-ng-include=" 'views/partials/loading.html' "></div> -->

<!--  /Loading Container -->
<!-- tips -->
<toaster-container toaster-options="{'position-class': 'toast-bottom-right', 'close-button':true}"></toaster-container>
<!-- tips end -->
<!-- Navbar -->
<div class="navbar navbar-fixed-top" data-ng-include=" 'views/partials/navbar.html' "></div>
<!-- /Navbar -->

<div class="main-container container-fluid">
    <!-- Page Container -->
    <div class="page-container">
        <!-- Page Sidebar -->
        <div class="page-sidebar sidebar-fixed" id="sidebar" data-ng-include=" 'views/partials/sidebar.html' "></div>
        <!-- /Page Sidebar -->
        <!-- Chat Bar -->
        <!-- <div id="chatbar" class="page-chatbar" data-ng-include=" 'views/partials/chatbar.html' "></div> -->
        <!-- /Chat Bar -->
        <!-- Page Content -->
        <div class="page-content">
            <!-- Page Breadcrumb -->
            <div class="page-breadcrumbs breadcrumbs-fixed}}" data-ng-include=" 'views/partials/breadcrumbs.html' "></div>
            <!-- /Page Breadcrumb -->
            <!-- Page Header -->
            <!-- <div class="page-header position-relative {{settings.fixed.header ? 'page-header-fixed' : ''}}" data-ng-include=" 'views/partials/header.html' "></div> -->
            <!-- /Page Header -->
            <!-- Page Body -->
            <div class="page-body" ui-view="">
                <!-- Your Content Goes Here -->
            </div>
            <!-- /Page Body -->
        </div>
        <!-- /Page Content -->
    </div>
    <!-- /Page Container -->
    <!-- Main Container -->
</div>
<!--编辑个人信息-->
<div class="modal fade" id="settingModal">
    <div class="modal-dialog">
        <form name="settingForm" ng-submit="settingFormSubmit()" novalidate>
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal">
                        <span aria-hidden="true">&times;</span> <span class="sr-only">Close</span>
                    </button>
                    <h4 class="modal-title">重置密码</h4>
                </div>
                <div class="modal-body">
                    <div class="form-group">
                        <span ng-bind="userName"></span>
                    </div>
                    <div class="form-group" ng-class="{ 'has-error' : settingForm.OldPassword.$dirty&&settingForm.OldPassword.$invalid}">
                        <div class="input-icon icon-right">
                            <input type="password" name="OldPassword" class="form-control" ng-model="settingInfo.OldPassword" placeholder="旧密码" required ng-minlength="6" ng-maxlength="12" ng-pattern="/^[a-zA-Z0-9_\.]+$/">
                            <i class="fa fa-lock circular"></i>
                            <p ng-show="settingForm.OldPassword.$dirty&&settingForm.OldPassword.$error.required" class="help-block">旧密码是必需的，并且不能是空的</p>
                            <p ng-show="settingForm.OldPassword.$error.pattern" class="help-block">密码只能由字母、数字、点和下划线组成</p>
                            <p ng-show="settingForm.OldPassword.$error.minlength||settingForm.OldPassword.$error.maxlength" class="help-block">密码为6到12个字符</p>
                        </div>
                    </div>
                    <div class="form-group" ng-class="{ 'has-error' : settingForm.NewPassword.$dirty&&(settingForm.NewPassword.$invalid||NewPassword!=OldPassword)}">
                        <div class="input-icon icon-right">
                            <input type="password" name="NewPassword" class="form-control" ng-model="settingInfo.NewPassword" placeholder="新密码" required ng-minlength="6" ng-maxlength="12" ng-pattern="/^[a-zA-Z0-9_\.]+$/">
                            <i class="fa fa-lock circular"></i>
                            <p ng-show="settingForm.NewPassword.$dirty && settingForm.NewPassword.$error.required" class="help-block">新密码是必需的，并且不能是空的</p>
                            <p ng-show="settingForm.NewPassword.$error.pattern" class="help-block">密码只能由字母、数字、点和下划线组成</p>
                            <p ng-show="settingForm.NewPassword.$error.minlength||settingForm.NewPassword.$error.maxlength" class="help-block">密码为6到12个字符</p>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="submit" class="btn btn-primary" ng-disabled="settingForm.$invalid">确定</button>
                    <button type="button" class="btn btn-warning" data-dismiss="modal">取消</button>
                </div>
            </div>
        </form>
    </div>
</div>